package com.biwin.common.app.enums;

import com.biwin.common.api.enums.IBwEnum;

/**
 * ORM
 *
 * @author biwin
 * @since 0.0.1
 */
public enum BwOrmExceptionEnum implements IBwEnum {
    ENTITY_NOT_EXIST("ORM0001", "未找到指定主键id的数据"),
    ENTITY_EXPIRED("ORM0002", "数据已过期"),
    ;

    private String code;

    private String value;

    BwOrmExceptionEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public void setValue(String value) {
        this.value = value;
    }
}
